import request from "../utils/request";
// 试卷列表
export const subjectsList = (data: any) => {
  return request.get('subjects/list', data)
}
// 删除试卷
export const subjectsDel = (data: any) => {
  return request.get('subjects/delete', data)
}
// 获取单条试卷信息
export const subjectsGet = (data: any) => {
  return request.get('subjects/get', data)
}
// 获取题库列表接口
export const databaseList = (data: any) => {
  return request.get('database/list', data)
}
// 根据id获取单个考试信息
export const exportExcel = (data: any) => {
  return request.get('subjects/exportExcel', data,'blob')
}
// 添加题库
export const databaseAdd = (data: any) => {
  return request.post('database/add', data)
}
// 根据题库id获取试题列表
export const databasequestionList = (data: any) => {
  return request.get('databasequestion/list', data)
}
// 根据题库id获取试题列表
export const subjectsAdd = (data: any) => {
  return request.post('subjects/add', data)
}